home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / c / sozobon / sozlib15.zoo / sozdistr / examples / world.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-02-15  |  386 b   |  18 lines

  1. /* The inevitable hello world program...
  2.  *
  3.  * I found this one while reading news and modified it slightly
  4.  * in order to avoid the CR/LF problem.
  5.  */
  6.  
  7.  
  8. float o=0.075,h=1.5,T,r,O,l,I;
  9. int x,L=80,s=3200;
  10.  
  11. void main()
  12. {
  13.     for( ;s%L||(h-=o,T= -2),s;4 -(r=O*O)<(l=I*I)|++x==L &&\
  14.                 printf("%.1s",(--s%L?(x<L ? --x%6:6):7)+"World! \n")&&\
  15.                 (O=I=l=x=r=0,T+=o/2) )
  16.         O=I*2*O+h,I=l+T-r;
  17. }
  18.